package nc.ui.bill.pub;
import nc.bs.framework.common.NCLocator;
import nc.itf.uap.IUAPQueryBS;
import nc.jdbc.framework.processor.ColumnProcessor;
import nc.ui.pub.beans.MessageDialog;
import nc.vo.pub.BusinessException;

public class CaUiPubTool {
	
	  public static Object getInvclasscode(String pk_invcl) {
			String sql =" select invclasscode from bd_invcl where pk_invcl = '"+pk_invcl+"' and isnull(dr,0)=0";
			IUAPQueryBS query = (IUAPQueryBS) NCLocator.getInstance().lookup(
					IUAPQueryBS.class.getName());
			Object o =null;
			try {
				 o=query.executeQuery(sql,new ColumnProcessor());
				
			} catch (BusinessException e) {
				//Logger.error(e.getMessage(), e);
			   MessageDialog.showWarningDlg(null, null, e.getMessage());
			}
			return o;
		}


}
